﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using DDOS.Camera;

namespace DDOS.Objects
{
    class Wall : GameObject
    {
        bool destructible;
        Rectangle drawRect;
        public Wall(Texture2D tex, BoundingRectangle col)
        {
            coordinates = new Vector2(col.boundingBox.Min.X, col.boundingBox.Min.Y);
            texture = tex;
            boundingObject = col;
            drawRect = new Rectangle((int)col.boundingBox.Min.X, (int)col.boundingBox.Min.Y, 
                                     (int)(col.boundingBox.Max.X - col.boundingBox.Min.X), 
                                     (int)(col.boundingBox.Max.Y - col.boundingBox.Min.Y));
        }

        public void init_camera(Camera3D cam)
        {
            this.camera = cam;
        }

        public override void Update(GameTime game_time)
        {
        }

        public override void InitializeComponents()
        {

        }
        public override void Draw()
        {
            ScreenManager.Instance.CurrentSpriteBatch.Draw(texture, drawRect, Color.White);
        }
    }
}
